package main.java.DMDE.model;

public enum CardinalityValues {
    CERO("0", 0), ONE("1", 1), MANY("*", 2);

    private String desc = null;
    private int value;

    private CardinalityValues(String desc, int value) {
	this.desc = desc;
	this.value = value;
    }

    public String getDesc() {
	return desc;
    }

    /*
     * Returns a description of the modifier
     */
    public String toString() {
	return desc;
    }
    
    public int compare(CardinalityValues cardinality) {
	return this.value - cardinality.value;
    }

}
